//服务器全部接口返回的数据类型
export interface ResponseData {
    code: number
    message: string
    ok: boolean
}

// 单个用户信息
export interface User {
    id?: number
    createTime?: string
    updateTime?: string
    username?: string
    password?: string
    name?: string
    phone?: string
    roleName?: string
}

export type Records = User[]
// 全部职位信息
export interface UserResponseData extends ResponseData {
    data: {
        records: Records
        total: number
        size: number
        current: number
        pages: number
    }
}

// 用户分配角色--获取用户的所有角色信息
export interface Role {
    id?: number
    createTime?: string
    updateTime?: string
    roleName?: string
    remark?: string
}
export type Roles = Role[]
export interface RolesData extends ResponseData {
    data: {
        assignRoles: Roles
        allRolesList: Roles
    }
}
// 给已有的用户分配角色参数
export interface RoleVo {
    roleIdList: number[]
    userId: number
}

